#!/bin/bash

echo "start flutter pub run pigeon"
flutter pub run pigeon \
    --input lib/pigeon/ruixue_pigeon.dart \
    --dart_out lib/pigeon/ruixue_plugin.dart \
    --java_out android/app/src/main/java/pigeon/RuixuePlugin.java \
    --java_package pigeon \
    --objc_source_out ios/Runner/RuixuePlugin.m \
    --objc_header_out ios/Runner/RuixuePlugin.h \
    --arkts_out ./ohos/entry/src/main/ets/plugins/RuixuePigeonPlugin.ets

echo "finished!"